//
//  VipCardExportViewController.m
//  fitnessmanage
//
//  Created by wujian on 2017/12/11.
//  Copyright © 2017年 zongquankeji. All rights reserved.
//

#import "VipCardExportViewController.h"

@interface VipCardExportViewController ()

@end

@implementation VipCardExportViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];

    self.title = @"会员卡导入导出";
    
    self.view.backgroundColor = BackGroundColor;
    
    [self createSubView];
}

-(void)createSubView{
    
    UIView *whiteView1 = [[UIView alloc] init];
    whiteView1.backgroundColor = CSWhiteColor;
    [self.view addSubview:whiteView1];
    
    UIButton *importBtn = [[UIButton alloc] init];
    [importBtn setTitle:@"会员卡导入"];
    importBtn.titleLabel.font = MidBigFont;
    [importBtn setTitleColor:CSColorFromRGB(0x0a0a0a)];
    [importBtn setImage:@"card_icon_export"];
    [whiteView1 addSubview:importBtn];
    
    UIView *whiteView2 = [[UIView alloc] init];
    whiteView2.backgroundColor = CSWhiteColor;
    [self.view addSubview:whiteView2];
    
    UIButton *exportBtn = [[UIButton alloc] init];
    [exportBtn setTitle:@"会员卡导出"];
    exportBtn.titleLabel.font = MidBigFont;
    [exportBtn setTitleColor:CSColorFromRGB(0x0a0a0a)];
    [exportBtn setImage:@"card_icon_import"];
    [whiteView2 addSubview:exportBtn];
    
    
    [whiteView1 mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.top.mas_equalTo(self.view).offset(10);
        
        make.left.mas_equalTo(self.view).offset(20);
        
        make.right.mas_equalTo(self.view).offset(-20);
        
        make.height.mas_equalTo(200);
    }];
    
    [importBtn mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.center.mas_equalTo(whiteView1);
    }];
    [importBtn titleBelowTheImageWithSpace:10];
    
    [whiteView2 mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.top.mas_equalTo(whiteView1.mas_bottom).offset(20);
        
        make.left.width.height.mas_equalTo(whiteView1);
    }];
    
    [exportBtn mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.center.mas_equalTo(whiteView2);
    }];
    [exportBtn titleBelowTheImageWithSpace:10];
}

@end
